#include <cstdio>

int main(int argc, char const *argv[]) {
    for (int a = 0; a < 10; a++) {
        for (int b = 0; b < 10; b++) {
            for (int c = 0; c < 10; c++) {
                int num1 = a*100 + b*10 + c;
                int num2 = b*100 + c*10 + c;
                if (num1 + num2 == 532) {
                    printf("%d %d %d\n", a, b, c);
                }
            }
        }
    }
    return 0;
}